﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Business
{
    public static class HospitalizationManager
    {
        public static ICollection<Model.Bed> ObtainAllBeds()
        {
            return DataAccess.HospitalizationDataAccess.ObtainAllBeds();
        }

        public static bool RegisterHospitalization(Model.Hospitalization hospitalization)
        {
            bool verify = false;
            if (hospitalization != null)
            {
                if (DataAccess.HospitalizationDataAccess.RegisterNewHospitalization(hospitalization))
                    verify = true;
            }
            return verify;
        }

        public static ICollection<Model.Hospitalization> ObtainActiveHospitalizations()
        {
            return DataAccess.HospitalizationDataAccess.ObtainActiveHospitalizations();
        }
    }
}
